package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.DeviceObjectRelate;
import cn.topevery.garden.entity.query.DeviceObjectRelateQuery;
import cn.topevery.garden.entity.query.DeviceObjectResultQuery;
import cn.topevery.garden.entity.vo.DeviceObjectResultVO;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;

/**
 * 
 *
 * @author code-generate
 * @date 2021-09-08
 */
public interface DeviceObjectRelateDao extends BaseDao<DeviceObjectRelate> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<DeviceObjectRelate> listPage(DeviceObjectRelateQuery query);

    List<DeviceObjectRelate> getAllList(Integer type);

    DataPager<DeviceObjectResultVO> getDataPage(DeviceObjectResultQuery query);

    boolean isExit(String fieldName, String value,String ObjectType);

    void deleteById(Integer deviceId, Integer objectId);

    void currRelationToLocal();
}
